package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import com.ktgj.service.domain.ContractLinkVipchannelPrice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.ContractLinkBoardingPriceMapper;
import com.ktgj.service.domain.ContractLinkBoardingPrice;
import com.ktgj.service.service.IContractLinkBoardingPriceService;

/**
 * 合同值机价格
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class ContractLinkBoardingPriceServiceImpl implements IContractLinkBoardingPriceService 
{
    @Autowired
    private ContractLinkBoardingPriceMapper contractLinkBoardingPriceMapper;

    /**
     * 查询合同值机价格

     * 
     * @param contractBoardingpriceid 合同值机价格
ID
     * @return 合同值机价格

     */
    @Override
    public ContractLinkBoardingPrice selectContractLinkBoardingPriceById(Long contractBoardingpriceid)
    {
        return contractLinkBoardingPriceMapper.selectContractLinkBoardingPriceById(contractBoardingpriceid);
    }

    /**
     * 查询合同值机价格
列表
     * 
     * @param contractLinkBoardingPrice 合同值机价格

     * @return 合同值机价格

     */
    @Override
    public List<ContractLinkBoardingPrice> selectContractLinkBoardingPriceList(ContractLinkBoardingPrice contractLinkBoardingPrice)
    {
        return contractLinkBoardingPriceMapper.selectContractLinkBoardingPriceList(contractLinkBoardingPrice);
    }

    /**
     * 新增合同值机价格

     * 
     * @param contractLinkBoardingPrice 合同值机价格

     * @return 结果
     */
    @Override
    public int insertContractLinkBoardingPrice(ContractLinkBoardingPrice contractLinkBoardingPrice)
    {
        contractLinkBoardingPrice.setCreateTime(DateUtils.getNowDate());
        return contractLinkBoardingPriceMapper.insertContractLinkBoardingPrice(contractLinkBoardingPrice);
    }

    /**
     * 修改合同值机价格

     * 
     * @param contractLinkBoardingPrice 合同值机价格

     * @return 结果
     */
    @Override
    public int updateContractLinkBoardingPrice(ContractLinkBoardingPrice contractLinkBoardingPrice)
    {
        contractLinkBoardingPrice.setUpdateTime(DateUtils.getNowDate());
        return contractLinkBoardingPriceMapper.updateContractLinkBoardingPrice(contractLinkBoardingPrice);
    }

    /**
     * 批量删除合同值机价格

     * 
     * @param contractBoardingpriceids 需要删除的合同值机价格
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkBoardingPriceByIds(Long[] contractBoardingpriceids)
    {
        return contractLinkBoardingPriceMapper.deleteContractLinkBoardingPriceByIds(contractBoardingpriceids);
    }

    /**
     * 删除合同值机价格
信息
     * 
     * @param contractBoardingpriceid 合同值机价格
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkBoardingPriceById(Long contractBoardingpriceid)
    {
        return contractLinkBoardingPriceMapper.deleteContractLinkBoardingPriceById(contractBoardingpriceid);
    }

    @Override
    public List<ContractLinkBoardingPrice> selectContractLinkBoardingPriceByContractBoardingId(Long contractBoardingid) {
        return contractLinkBoardingPriceMapper.selectContractLinkBoardingPriceByContractBoardingid(contractBoardingid);
    }
}
